<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*"%>
 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 
 <div style="width:500px;margin:0px auto;text-align:center">
	<table align='center' border='1' cellspacing='0'>
	    <tr>
	        <td>stuID</td>
	        <td>name</td>
	        <td>sex</td>
	        <td>age</td>
	        <td>编辑</td>
	        <td>删除</td>
	    </tr>
	    <c:forEach items="${cs}" var="c" varStatus="st">
	        <tr>
	            <td>${c.stuID}</td>
	            <td>${c.name}</td>
	            <td>${c.sex}</td>
	            <td>${c.age}</td>
	        </tr>
	    </c:forEach>
	</table>
	
	<div style="text-align:center;margin-top:40px">
		<form method="post" action="addStudent">
			姓名:<input name="name" type="text"> <br>
		            性别：<input name="sex" type="text"> <br>
		            年龄:<input name="age" type="text"> <br>
			<input type="submit" value="添加学生">
		</form>
	</div>	
	
 </div>
